#include <iostream>
#include <fstream>
#include <cstring>

#define BUFSIZE 1024

using namespace std;

int main(int argc, char **argv)
{
    ifstream ifm;
    ofstream ofm;
    char buf[BUFSIZE] = {};
    
    if (argc < 3)
        return 1;

    ifm.open(argv[1], ifstream::in);
    ofm.open(argv[2], ofstream::out);

    while (!ifm.eof()) {
        ifm.getline(buf, BUFSIZE);
        ofm.write(buf, BUFSIZE);
        ofm.write("\n", 1);
        memset(buf, 0, BUFSIZE);
    }

    ifm.close();
    ofm.close();

    return 0;
}

